<%@page contentType="text/html; charset=utf-8" %>
<%@page import="eduboat.comm.util.ReturnConstant"%>
<%@page import="eduboat.comm.util.SysConstant"%>
<%@page import="eduboat.dsch.comm.util.AdminMenuConstant"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--
=======创建信息===========
页面作用描述： 生成mybtis相关文件
创建人:王洪
创建日期：2013-1-25

=======修改信息1===========
修改描述： 
修改人:
修改日期：
-->

<title>学舟智能教学平台-后台管理</title>
<%@ include file="/comm/jsp/public.jsp"%>
<!--通用css-->
<link rel="stylesheet" type="text/css" media="all" href="<%=path %>/work/comm/css/common.css" />
<!--顶部logocss-->
<link rel="stylesheet" type="text/css" media="all" href="<%=path %>/work/comm/css/head.css" />
<!--导航菜单css-->
<link rel="stylesheet" type="text/css" media="all" href="<%=path %>/work/comm/css/menu.css" />
<!--通用js-->
<script type="text/javascript" src="<%=path %>/work/comm/js/public.js"></script>
<!--菜单操作js-->
<script type="text/javascript" src="<%=path %>/work/comm/js/nav.js"></script>
<!--返回顶部-->
<script type="text/javascript" src="<%=path %>/work/comm/js/backtotop.js"></script>
<!-- 表单验证 -->
<link   href="<%=path%>/comm/plug/validateform/validationEngine.jquery.css" rel="stylesheet" type="text/css" media="all"/>
<script src="<%=path%>/comm/plug/validateform/jquery.validationEngine-zh_CN.js" type="text/javascript" ></script>
<script src="<%=path%>/comm/plug/validateform/jquery.validationEngine.js" type="text/javascript" ></script>

<style>

</style>
<SCRIPT type="text/javascript">
jQuery("#formID").validationEngine(
		{
		

		// alidationEventTriggers:"keyup blur", //这里增加了个keyup，也就是键盘按键起来就触发验证
// promptPosition: "bottomLeft", // 有5种模式 topLeft, topRight, bottomLeft, centerRight, bottomRight
//validationEventTrigger:"submit" ///按钮提交

     }

		
		);
	
	function tj(){
	
		if($("#formID").validationEngine("validate")){
			var params={};
			$("input[name^='codeHelpVO']").each(function(){
				
					params[$(this).attr("name")]=$(this).val();
				
				
			});
			var i=0;
			$("input[name='tableVO.tableName']").each(function(){
					params["tableVO["+i+"].tableName"]=$(this).val();	
					i++;
					
			});
			i=0;
			$("input[name='tableVO.keyColumn']").each(function(){
					params["tableVO["+i+"].keyColumn"]=$(this).val();	
					i++;
			});
			i=0;
			$("input[name='__checkbox_tableVO.generated']").each(function(){
					params["__checkbox_tableVO["+i+"].generated"]=$(this).val();	
					i++;
			});	
			i=0;
			$("input[name='tableVO.generated']").each(function(){
				if($(this).attr("checked")){
					params["tableVO["+i+"].generated"]=$(this).val();	
				}
				i++;
			});
			$.post("<%=path%>/work/admin/xtgl/json/mybatisCodeHelp.action",params,function(data){
				if(data.returnVO.returnCode=="<%=ReturnConstant.IS_DEAL_OK%>"){
					art.dialog.alert(data.returnVO.returnDesc,function(){
						art.dialog.open("<%=path%>/work/admin/xtgl/mybatis/code_mybatis_show.jsp?dao="+encodeURI(data.daoXml), {title: 'xml文件'});
					},"succeed");
				}else if(data.returnVO.returnCode=="<%=ReturnConstant.IS_NOT_LOGIN%>"){
					login_open();
				}else{
					art.dialog.alert(data.returnVO.returnDesc,function(){},"error");
				}
				
				
			},"json");
		}
	}
		
	
</SCRIPT>
</head>
<body>


 <!-- 顶部 -->
	 <jsp:include page="<%=path %>/work/admin/comm/jsp/head.jsp"/>
    <!-- 顶部 end-->

<div class="body clearfix">
	<!-- 菜单及返回顶部 -->
	<jsp:include page="<%=path %>/work/admin/comm/jsp/menu.jsp">
	 <jsp:param value="<%=AdminMenuConstant.ADMIN_SYSTEM %>" name="menu_parent_code"/>
	 <jsp:param value="<%=AdminMenuConstant.ADMIN_SYSTEM_TBL %>" name="menu_sub_code"/>
	</jsp:include>
     
	<!-- 菜单及返回顶部end -->	
	<div class="misc">
		
		<div  id="backtotop" class="backtotop">
			<a class="trackable" href="#header"></a>
		</div>
	</div><!-- .misc -->
			
	<!--导航-->
	<div style="margin-left:150px">
		<ul id="crumbs">
	<li><a href="javascript:void(0)">首页</a></li>
	<li><a href="javascript:void(0)">系统管理</a></li>
	<li><a href="#">开发表维护</a></li>
		<li>
    <!--帮助-->
        <div  class="report-help" title="点击查看帮助" onClick="slideToggle('ReportExam')"></div>
    <!--帮助 end-->
</li>
	</ul>
	
	</div>
			
	<!--导航 end-->
	
	<!--提示信息-->
	<div  id="ReportExam" class="report-tip">
				<div class="tip-arrow" style="left: 66px;"></div>
				<div class="report-tip-content">
					<table class="report-tip-table">
						<tr>
							<td width="95%" valign="top">
								<div class="left-content l">
								
								<p class="label">
								自动生成jsp list 和 edit页面
								</p>
								</div>
							</td>
						</tr>
					</table>
				</div><!-- .report-tip-content -->
			</div><!-- #ReportExam, .report-tip -->
		<!--提示信息-->	
	<div class="main">
	  <div class="content clearfix" style="width:1080px; ">
			
         <!--工作区-->
	


		<div >
		<!--查询条件start-->
		<div class="massage_box" style="margin-left:0px;margin-top:0px; margin-bottom:10px">
   		<div class="massage"> 
    		
			<div style="margin-left:10px; margin-right:10px; margin-top:0px; margin-bottom:0px">
			<table style="width:100%">
			<tr>
			
			<td style="width:70%">
						
			表名：<s:textfield name="login_name" id="login_name" cssStyle="width:100px;height:25px"></s:textfield>
			用户名：<s:textfield name="user_name" id="user_name" cssStyle="width:100px;height:25px"></s:textfield>
			<input type="button" class="inputOver" style="width:40px" value="查询" onclick="initData(1)" />
			</td>

			</tr>
			</table>
			
		 
			
			</div>
			
			
		 </div>
	  </div>
	  <!--查询条件end-->
	<input id="btnInsert" type="button" class="inputOver" style="width:80px; margin-left:10px; margin-bottom:5px "
		   value="新增" onclick="insertTbl()" />
		   <input id="btnInsert" type="button" class="inputOver" style="width:80px; margin-left:10px; margin-bottom:5px "
		   value="保存" onclick="insertTbl()" />
		   <input id="btnInsert" type="button" class="inputOver" style="width:80px; margin-left:10px; margin-bottom:5px "
		   value="删除" onclick="insertTbl()" />
		<table id="table" class="table" style="margin-right:10px; width:1000px">
					<thead>
						<tr >
							<td  class="numberCol">
							</td>
							<td >
									表名					
							</td>							
							<td >								
									操作	
							</td>
						</tr>
					</thead>
					<tbody id="pageDatas">
						
					</tbody>
				</table>
				
			<!--分页开始-->
			<div id="paging"  style="width:1000px;text-align: right">
			</div><!-- #Paging -->
			<!--分页结束-->

		</div>
		<!--工作区 end-->
		
	
 
  </div><!-- .content, clearfix -->

  </div><!-- .content, clearfix -->
		<jsp:include page="/work/admin/comm/jsp/foot.jsp"/>
	</div><!-- .main -->
</div><!-- .body, .clearfix -->
</body>
</html>
